package com.study.结构型模式.装饰者模式;

public class Client {

    public static void main(String[] args) {
        Drink coffee = new Milk(new Chocolate(new Chocolate(new LongCoffee())));
        float cost = coffee.cost();
        String des = coffee.getDes();
        System.out.println(des);
        System.out.println("总计："+cost);
    }
}
